<meta name="content-type" content="text/html; charset=UTF-8" />
<div id="productFormGroup">
	<form class="form-horizontal" role="form" name="orderListForm"
		action="yueyogaAdmin/searchProducts.jhtml" method="post">
		<div id="order_search_cdts" class="form-group">
			<label for="orderType" class="col-sm-1 control-label">销售</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-width="100%" name="orderType" id="orderType">
					<option value=""> </option>
					<option value="">全部</option>
					<option value="新销售">新销售</option>
					<option value="续费">续费</option>
					<option value="定金">定金</option>
					<option value="退款">退款</option>
				</select>
			</div>
			<label for="txtProductName" class="col-sm-1 control-label">名称</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txtProductName"
					name="orderProName">
			</div>
			<br /> <br />
			<label for="selProductOrderTypes" class="col-sm-1 control-label">类型</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-width="100%"
					name="orderProType" id="selProductOrderTypes">
					<option value=""> </option>
					<option value="">全部</option>
					<option value="101">按次卡</option>
					<option value="102">按时间</option>
					<option value="107">按金额</option>
					<option value="103">年卡</option>
					<option value="104">季卡</option>
					<option value="105">月卡</option>
					<option value="106">半月卡</option>
					<option value="108">实时扣费</option>
				</select>
			</div>
			<label for="selBuyers" class="col-sm-1 control-label">会员</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-live-search="true"
					data-width="100%" name="buyerId" id="selBuyers">
					<option value=""> </option>
					<option value="">全部</option>
					<!-- #for(Member member:members) -->
					<option value="${member.memberid}">
						<!-- #if(member.cardnumber != null && member.cardnumber != '') -->
							${member.cardnumber}-
						<!-- #end -->
						${member.name}
					</option>
					<!-- #end -->
				</select>
			</div>
			<br /> <br />
			<label for="selSellers" class="col-sm-1 control-label">负责人</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-live-search="true"
					data-width="100%" name="sellerId" id="selSellers">
					<option value=""> </option>
					<option value="">全部</option>
					<!-- #for(GroupUserModel respor:respors) -->
					<option value="${respor.id}">
						${respor.name}
					</option>
					<!-- #end -->
				</select>
			</div>
			<br /> <br /><br /> <br /> <label for="buyStartDate"
				class="col-sm-1 control-label">购买时间</label>
			<div class="col-sm-3">
				<div id="inputStartDate" class="input-group date"
					data-date-format="YYYY-MM-DD">
					<input id="buyStartDate" name="buyStartDate" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>

			<label for="buyEndDate" class="panel-searh-zhi">至</label>
			<div class="col-sm-3">
				<div id="inputEndDate" class="input-group date"
					data-date-format="YYYY-MM-DD">
					<input id="buyEndDate" name="buyEndDate" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>
			<br><br>
			<br> <br>
			<input type="hidden" value="1" name="dis" id="dis"/>
			<div class="panel-db-search">
				<button id="btn_order_search" type="button"
					class="btn btn-default btn-ade-default">搜索</button>
			</div>
		</div>
	</form>
	<form class="form-horizontal" role="form" name="consumeListForm"
		action="yueyogaAdmin/searchProducts.jhtml" method="post"
		style="display: none;">
		<div id="product_search_cdts" class="form-group">

			<label for="sltClassId" class="col-sm-1 control-label">班级</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-live-search="true"
					data-width="100%" name="sltClassId" id="sltClassId">
					<option value=""> </option>
					<option value="">全部</option>
					<!-- #for(TinyClass clazz:classList) -->
					<option value="${clazz.classId}">${clazz.className}</option>
					<!-- #end -->
				</select>
			</div>
			<label for="sltProductId" class="col-sm-1 control-label">产品</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-live-search="true"
					data-width="100%" name="sltProductId" id="sltProductId">
					<option value=""> </option>
					<option value="">全部</option>
					<!-- #for(Product product:productList) -->
					<option value="${product.productId}">${product.name}</option>
					<!-- #end -->
				</select>
			</div>
			<br /> <br /> <label for="sltMemberId"
				class="col-sm-1 control-label">会员</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-live-search="true"
					data-width="100%" name="sltMemberId" id="sltMemberId">
					<option value=""> </option>
					<option value="">全部</option>
					<!-- #for(ClassMemberModel cmm:consumeMembers) -->
					<option value="${cmm.id}">
						<!-- #if(cmm.memberCode != null && cmm.memberCode != '') -->
						${cmm.memberCode}-
						<!-- #end --> ${cmm.name}
					</option>
					<!-- #end -->
				</select>
			</div>

			<!-- <label for="sltAreaId" class="col-sm-1 control-label">地域</label>
			<div class="col-sm-3">
				<select class="form-control selectpicker" data-live-search="true" data-width="100%" name="sltAreaId" id="sltAreaId">
					<option value="">全部</option>
					
				</select>
			</div> -->
			<br /> <br /> <br /> <br /> <label for="consumeTimeFrom"
				class="col-sm-1 control-label">出席日期</label>
			<div class="col-sm-3">
				<div id="consumeTimeFromDiv" class="input-group date"
					data-date-format="YYYY-MM-DD">
					<input id="consumeTimeFrom" name="consumeTimeFrom" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>
			<label for="consumeTimeTo" class="panel-searh-zhi">至</label>
			<div class="col-sm-3">
				<div id="consumeTimeToDiv" class="input-group date"
					data-date-format="YYYY-MM-DD">
					<input id="consumeTimeTo" name="consumeTimeTo" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>
			<br /> <br /> <label for="scheduleTimeFrom"
				class="col-sm-1 control-label clear">出席时间</label>
			<div class="col-sm-3">
				<div id="scheduleTimeFromDiv" class="input-group date"
					data-date-format="HH:mm">
					<input id="scheduleTimeFrom" name="scheduleTimeFrom" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>
			<label for="scheduleTimeTo" class="panel-searh-zhi">至</label>
			<div class="col-sm-3">
				<div id="scheduleTimeToDiv" class="input-group date"
					data-date-format="HH:mm">
					<input id="scheduleTimeTo" name="scheduleTimeTo" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>
			
			<br /> <br /> <br /> <br />
			<label for="total_absent" class="col-sm-1 control-label clear">累计未出席</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" 
					data-width="100%" name="total_absent" id="total_absent">
					<option value=""> </option>
					<option value="">不限</option>
					<option value="7">一个周</option>
					<option value="30">一个月</option>
					<option value="60">两个月</option>
					<option value="90">三个月</option>
				</select>
			</div>

			<input type="hidden" value="1" id="dis" name="dis" />
			<br /> <br />

			<div class="panel-db-search">
				<button id="btn_consume_search" type="button"
					class="btn btn-default btn-ade-default">搜索</button>
			</div>
		</div>
	</form>
	<form class="form-horizontal" role="form" name="productListForm"
		action="yueyogaAdmin/searchProducts.jhtml" method="post" 
		style="display: none;">
		<div id="product_search_cdts" class="form-group">
			<label for="txtProductName" class="col-sm-1 control-label">产品名称</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="productName"
					name="productName">
			</div>
			<label for="selProductType" class="col-sm-1 control-label">产品类型</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-width="100%"
					name="productType" id="productType">
					<option value=""> </option>
					<option value="">全部</option>
					<option value="101">按次数</option>
					<option value="102">按时间</option>
					<option value="107">按金额</option>
					<option value="103">年卡</option>
					<option value="104">季卡</option>
					<option value="105">月卡</option>
					<option value="106">半月卡</option>
					<option value="108">实时扣费</option>
				</select>
			</div>
			<br /> <br />
			<br /> <br /> <label for="inputStartDate1"
				class="col-sm-1 control-label">起始日期</label>
			<div class="col-sm-3">
				<div id="inputStartDate1" class="input-group date"
					data-date-format="YYYY-MM-DD">
					<input id="startdate1" name="startdate1" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>

			<label for="inputEndDate1" class="panel-searh-zhi">至</label>
			<div class="col-sm-3">
				<div id="inputEndDate1" class="input-group date"
					data-date-format="YYYY-MM-DD">
					<input id="enddate1" name="enddate1" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>
			<br /> <br /> <label for="inputStartDate2"
				class="col-sm-1 control-label clear">结束日期</label>
			<div class="col-sm-3">
				<div id="inputStartDate2" class="input-group date"
					data-date-format="YYYY-MM-DD">
					<input id="startdate2" name="startdate2" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>

			<label for="inputEndDate2" class="panel-searh-zhi">至</label>
			<div class="col-sm-3">
				<div id="inputEndDate2" class="input-group date"
					data-date-format="YYYY-MM-DD ">
					<input id="enddate2" name="enddate2" type='text'
						class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>
			<input type="hidden" value="1" id="dis" name="dis" />
			<input type="hidden" value="1" id="hidPageNo" name="pageNo" /> <input
				type="hidden" value="1" id="hidSearchType" name="searchType" /> 
				
				<br>
			<br>
			<div class="panel-db-search">
				<button id="btn_product_search" type="button"
					class="btn btn-default btn-ade-default">搜索</button>
			</div>
		</div>
	</form>
</div>
<script type="text/javascript">
	$(function() {
		$("#consumeTimeFromDiv").datetimepicker({
			language : "zh-CN"
		});

		$("#consumeTimeToDiv").datetimepicker({
			language : "zh-CN"
		});

		$("#scheduleTimeFromDiv").datetimepicker({
			language : "zh-CN",
			pickDate : false
		});

		$("#scheduleTimeToDiv").datetimepicker({
			language : "zh-CN",
			pickDate : false
		});
		$("#inputStartDate1").datetimepicker({
			language : "zh-CN",
			pickTime : false
		});
		$("#inputStartDate2").datetimepicker({
			language : "zh-CN",
			pickTime : false
		});
		$("#inputEndDate1").datetimepicker({
			language : "zh-CN",
			pickTime : false
		});
		$("#inputEndDate2").datetimepicker({
			language : "zh-CN",
			pickTime : false
		});
		$("#inputEndDate1").datetimepicker({
			language : "zh-CN",
			pickTime : false
		});
		$("#inputEndDate2").datetimepicker({
			language : "zh-CN",
			pickTime : false
		});

		$("#inputStartDate").datetimepicker({
			language : "zh-CN",
			pickTime : false
		});
		$("#inputEndDate").datetimepicker({
			language : "zh-CN",
			pickTime : false
		});
		
		//去掉下拉输入框
		$("#selProductOrderTypes").select2({
			width: "100%",
			minimumResultsForSearch: -1
		});
		
		$("#productType").select2({
			width: "100%",
			minimumResultsForSearch: -1
		});
	});
</script>